package com.bank6677.sync.csm.domain.old;

import java.util.Date;

public class ServiceTypeDef {
    private Integer serviceTypeId;
    private String serviceName;
    private String remark;
    private Integer parentService;
    private Date createDt;
    private Date updateDt;
    public Integer getServiceTypeId() {
        return serviceTypeId;
    }

    public void setServiceTypeId(Integer serviceTypeId) {
        this.serviceTypeId = serviceTypeId;
    }

    public String getServiceName() {
        return serviceName;
    }

    public void setServiceName(String serviceName) {
        this.serviceName = serviceName == null ? null : serviceName.trim();
    }

    public String getRemark() {
        return remark;
    }

    public void setRemark(String remark) {
        this.remark = remark == null ? null : remark.trim();
    }

    public Integer getParentService() {
        return parentService;
    }

    public void setParentService(Integer parentService) {
        this.parentService = parentService;
    }

    public Date getCreateDt() {
        return createDt;
    }

    public void setCreateDt(Date createDt) {
        this.createDt = createDt;
    }

    public Date getUpdateDt() {
        return updateDt;
    }

    public void setUpdateDt(Date updateDt) {
        this.updateDt = updateDt;
    }

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (!(that instanceof ServiceTypeDef)) {
            return false;
        }
        ServiceTypeDef other = (ServiceTypeDef) that;
        return this.getServiceTypeId() == null ? other == null : this.getServiceTypeId().equals(other.getServiceTypeId())
            && this.getServiceName() == null ? other == null : this.getServiceName().equals(other.getServiceName())
            && this.getRemark() == null ? other == null : this.getRemark().equals(other.getRemark())
            && this.getParentService() == null ? other == null : this.getParentService().equals(other.getParentService())
            && this.getCreateDt() == null ? other == null : this.getCreateDt().equals(other.getCreateDt())
            && this.getUpdateDt() == null ? other == null : this.getUpdateDt().equals(other.getUpdateDt());
    }

    @Override
    public int hashCode() {
        int hash = 23;
        if (getServiceTypeId() != null) {
            hash *= getServiceTypeId().hashCode();
        }
        if (getServiceName() != null) {
            hash *= getServiceName().hashCode();
        }
        if (getRemark() != null) {
            hash *= getRemark().hashCode();
        }
        if (getParentService() != null) {
            hash *= getParentService().hashCode();
        }
        if (getCreateDt() != null) {
            hash *= getCreateDt().hashCode();
        }
        if (getUpdateDt() != null) {
            hash *= getUpdateDt().hashCode();
        }
        return hash;
    }
}